home *** CD-ROM | disk | FTP | other *** search
- From: Kay Roemer <roemer@informatik.uni-frankfurt.de>
- Posted-Date: Mon, 21 Mar 94 9:22:10 MEZ
- Received-Date: Mon, 21 Mar 94 09:22:10 +0100
- Message-Id: <9403210822.AA05825@hera.rbi.informatik.uni-frankfurt.de>
- Subject: Mint 1.10: Bug in Fselect()
- To: mint@atari.archive.umich.edu
- Date: Mon, 21 Mar 94 9:22:10 MEZ
- Mailer: Elm [revision: 70.85]
-
- This makes Fselect interruptible by signals. This feature was present
- in MiNT 1.09, but was lost in 1.10.
-
- Without this patch inetd and some other programs do not work correctly.
-
- Kay.
-
- --8<-------------- cut here ----------------------------
- *** dosfile.c.orig Mon Mar 7 20:09:06 1994
- --- dosfile.c Mon Mar 7 20:34:44 1994
- ***************
- *** 1040,1046 ****
- /* curproc->wait_cond changes when data arrives or the timeout happens */
- while (curproc->wait_cond == (long)wakeselect) {
- TRACE(("sleeping in Fselect"));
- ! sleep(SELECT_Q, (long)wakeselect);
- }
- spl(sr);
-
- --- 1040,1049 ----
- /* curproc->wait_cond changes when data arrives or the timeout happens */
- while (curproc->wait_cond == (long)wakeselect) {
- TRACE(("sleeping in Fselect"));
- ! if (sleep(SELECT_Q, (long)wakeselect)) {
- ! /* interrupted by signals */
- ! break;
- ! }
- }
- spl(sr);
-
- --8<-------------- cut here ----------------------------
-
-
-